package com.power.flowable.api;

import com.plf.common.domain.ResponseDTO;
import com.power.flowable.model.Log_limitscat;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


/**
 *  流程环节组办结时限 Feign
 */

@FeignClient(value = "sfflow-svr", contextId = "sfflow-svr", path = "/sfflow-svr")
@RestController
public interface ILog_limitscatFeign {

    /**
     * 根据id更新截止日期
     * @param processinstanceid
     * @param scatid
     * @param enddata
     * @return
     */
    @PostMapping("/log_limitscat/updateById")
    ResponseDTO updateById(@RequestParam String processinstanceid, @RequestParam String scatid, @RequestParam String enddata);

    /**
     * 查看流程环节组办结时限起始时间
     * @param processinstanceid
     * @param scatid
     * @return
     */
    @GetMapping("/log_limitscat/getStartdateById")
    String getStartdateById(@RequestParam String processinstanceid, @RequestParam String scatid);

}
